﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="LinkHubDbDataSet" targetNamespace="http://tempuri.org/LinkHubDbDataSet.xsd" xmlns:mstns="http://tempuri.org/LinkHubDbDataSet.xsd" xmlns="http://tempuri.org/LinkHubDbDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="LinkHubDbConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="LinkHubDbConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.LinkHubDbConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="tbl_UrlTableAdapter" GeneratorDataComponentClassName="tbl_UrlTableAdapter" Name="tbl_Url" UserDataComponentName="tbl_UrlTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="LinkHubDbConnectionString (Web.config)" DbObjectName="LinkHubDb.dbo.tbl_Url" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[tbl_Url] WHERE (([UrlId] = @Original_UrlId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UrlId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UrlId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[tbl_Url] ([UrlTitle], [Url], [UrlDesc], [CategoryId], [UserId], [IsApproved]) VALUES (@UrlTitle, @Url, @UrlDesc, @CategoryId, @UserId, @IsApproved)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UrlTitle" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UrlTitle" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Url" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Url" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UrlDesc" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UrlDesc" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CategoryId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CategoryId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@IsApproved" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IsApproved" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT UrlId, UrlTitle, Url, UrlDesc, CategoryId, UserId, IsApproved FROM dbo.tbl_Url</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[tbl_Url] SET [UrlTitle] = @UrlTitle, [Url] = @Url, [UrlDesc] = @UrlDesc, [CategoryId] = @CategoryId, [UserId] = @UserId, [IsApproved] = @IsApproved WHERE (([UrlId] = @Original_UrlId))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UrlTitle" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UrlTitle" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Url" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Url" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UrlDesc" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UrlDesc" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CategoryId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CategoryId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@IsApproved" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="IsApproved" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_UrlId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UrlId" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="UrlId" DataSetColumn="UrlId" />
              <Mapping SourceColumn="UrlTitle" DataSetColumn="UrlTitle" />
              <Mapping SourceColumn="Url" DataSetColumn="Url" />
              <Mapping SourceColumn="UrlDesc" DataSetColumn="UrlDesc" />
              <Mapping SourceColumn="CategoryId" DataSetColumn="CategoryId" />
              <Mapping SourceColumn="UserId" DataSetColumn="UserId" />
              <Mapping SourceColumn="IsApproved" DataSetColumn="IsApproved" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="LinkHubDbDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="LinkHubDbDataSet" msprop:Generator_UserDSName="LinkHubDbDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="tbl_Url" msprop:Generator_TableClassName="tbl_UrlDataTable" msprop:Generator_TableVarName="tabletbl_Url" msprop:Generator_TablePropName="tbl_Url" msprop:Generator_RowDeletingName="tbl_UrlRowDeleting" msprop:Generator_RowChangingName="tbl_UrlRowChanging" msprop:Generator_RowEvHandlerName="tbl_UrlRowChangeEventHandler" msprop:Generator_RowDeletedName="tbl_UrlRowDeleted" msprop:Generator_UserTableName="tbl_Url" msprop:Generator_RowChangedName="tbl_UrlRowChanged" msprop:Generator_RowEvArgName="tbl_UrlRowChangeEvent" msprop:Generator_RowClassName="tbl_UrlRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UrlId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUrlId" msprop:Generator_ColumnPropNameInRow="UrlId" msprop:Generator_ColumnPropNameInTable="UrlIdColumn" msprop:Generator_UserColumnName="UrlId" type="xs:int" />
              <xs:element name="UrlTitle" msprop:Generator_ColumnVarNameInTable="columnUrlTitle" msprop:Generator_ColumnPropNameInRow="UrlTitle" msprop:Generator_ColumnPropNameInTable="UrlTitleColumn" msprop:Generator_UserColumnName="UrlTitle">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Url" msprop:Generator_ColumnVarNameInTable="columnUrl" msprop:Generator_ColumnPropNameInRow="Url" msprop:Generator_ColumnPropNameInTable="UrlColumn" msprop:Generator_UserColumnName="Url">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="UrlDesc" msprop:Generator_ColumnVarNameInTable="columnUrlDesc" msprop:Generator_ColumnPropNameInRow="UrlDesc" msprop:Generator_ColumnPropNameInTable="UrlDescColumn" msprop:Generator_UserColumnName="UrlDesc">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CategoryId" msprop:Generator_ColumnVarNameInTable="columnCategoryId" msprop:Generator_ColumnPropNameInRow="CategoryId" msprop:Generator_ColumnPropNameInTable="CategoryIdColumn" msprop:Generator_UserColumnName="CategoryId" type="xs:int" minOccurs="0" />
              <xs:element name="UserId" msprop:Generator_ColumnVarNameInTable="columnUserId" msprop:Generator_ColumnPropNameInRow="UserId" msprop:Generator_ColumnPropNameInTable="UserIdColumn" msprop:Generator_UserColumnName="UserId" type="xs:int" minOccurs="0" />
              <xs:element name="IsApproved" msprop:Generator_ColumnVarNameInTable="columnIsApproved" msprop:Generator_ColumnPropNameInRow="IsApproved" msprop:Generator_ColumnPropNameInTable="IsApprovedColumn" msprop:Generator_UserColumnName="IsApproved" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:tbl_Url" />
      <xs:field xpath="mstns:UrlId" />
    </xs:unique>
  </xs:element>
</xs:schema>